import request from '@/utils/request'

export default {
    // 获取用户订单
    getUserOrders(params) {
        return request.get('/api/user/orders', { params })
    },

    // 获取订单详情
    getOrderDetail(orderId) {
        return request.get(`/api/order/${orderId}`)
    }
}